package com.onLineCar.management.feign;

import com.onLineCar.common.core.domain.Result;
import com.onLineCar.management.domain.TDriver;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author : 段敏强
 * @className : queryDriverData
 * @description : 描述说明该类的功能
 * @createTime : 2023/12/20 18:50
 */

/**
 * 调用driver服务
 */
@FeignClient(name = "onLineCar-driver")
@Component
public interface QueryDriverData {


    /**
     * 调用driver服务
     * @param driverId
     * @return
     */
     @PostMapping("/driver/queryDriverListByDriverId/{driverId}")
     Result<TDriver> queryDriverList (@PathVariable(value = "driverId") Integer driverId);


}
